package com.briup.ch11;

import java.io.File;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/15
 * @Description:
 */
public class Test3 {
    public static void main(String[] args) {
        File file = new File("E:\\briup\\workspace\\YD22-J2EE\\1-corejava\\src\\com\\briup\\ch11\\test.txt");
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
        System.out.println(file.length());
        System.out.println(file.isAbsolute());
        System.out.println(file.isHidden());
        System.out.println("--------------------------");
        File file2 = new File("E:\\briup\\workspace\\YD22-J2EE\\1-corejava");
        System.out.println(file2.exists());
        System.out.println(file2.isFile());
        System.out.println(file2.isDirectory());
        System.out.println(file2.length());
        System.out.println(file2.isAbsolute());
        System.out.println(file2.isHidden());


    }
}
